#!/bin/sh

echo Compiling the programme $1...
mpicc $1 -o /tmp/mpi-a.out

chmod a+x /tmp/mpi-a.out

echo Starting the programme...
mpirun -np $2 /tmp/mpi-a.out $3 $4 $5 $6 $7 $8 $9 $10

exit 0

